# -*- coding: utf-8 -*-
from django.http import HttpResponse
from App.models import plat_sn
 
# 查询序列号
def searchSN(request):
	request.encoding='utf-8'
	if  "sn-input" in request.GET:
		sn = request.GET["sn-input"]
		response = ""
		response = plat_sn.objects.get(sn=sn)
		return render(request,"searchSN.html" ,{'datas':response})
	else:
		message = '你提交了空的id'
		return HttpResponse(message)
